//
//  HYBaseHandler.m
//  Around
//
//  Created by 华谕 on 2017/6/13.
//  Copyright © 2017年 HUYU. All rights reserved.
//

#import "HYBaseHandler.h"

@implementation HYBaseHandler
//注册请求验证码/user/code4register
+ (void)requestCodeRegisterParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_CodeRegist params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];

}

//用户注册
+ (void)requestRegisterParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed {
    [HttpTool postWithPath:SERVER_Regist params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//用户登录
+ (void)requestUserLoginParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed {
    [HttpTool postWithPath:SERVER_UserLogin params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//工厂信息保存
+ (void)requestFactoryMessageSaveParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed {
    [HttpTool postWithPathJson:SERVER_FactoryMessageSave params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//工厂信息地址
+ (void)requestAreaParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed {
    [HttpTool postWithPath:SERVER_GetFactoryAddress params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//获取用户登录信息
+ (void)requestUserMessageParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed {
    [HttpTool postWithPath:SERVER_UserMessage params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//公钥 
+ (void)requestPublicKeyParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_PublicKey params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//获取所有城市
+ (void)requestCityParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_AllCity params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//热门城市
+ (void)requestHotCityParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_HotCity params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//获取我的产线列表
+ (void)requestProductionLineParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_ProductionLine params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//获取所有产线列表
+ (void)requestAllProductionLineParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_AllProductionLine params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}


//添加产线
+ (void)requestSaveProductionLineParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPathJson:SERVER_SaveProductionLine params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//我的钱包
+ (void)requestMineWalletParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_MyWallet params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}


//交易明细
+ (void)requestWalletTransactionParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_MyTransaction params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//修改提现密码时请求验证码
+ (void)requestGetUpdateWithdrawPswCodeParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_GetUpdateWithDrawPswCode params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//修改提现密码
+ (void)requestupdateWithdrawPswParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_UpdateWithDrawPsw params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//提现
+ (void)requestWithdrawAddParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_WithDrawSave params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//银行卡列表
+ (void)requestBankCarListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_BankCardList params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//解除银行卡绑定
+ (void)requestBankCarddeleteParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_DeleteBankCard params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//获取添加银行卡的验证码
+ (void)requestCodeBankCardParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_BankCardGetCode params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//添加银行卡
+ (void)requestAddBankCarParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPathJson:SERVER_BankCardGetSave params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//银行列表
+ (void)requestBankListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_BankList params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//是否设置了提现密码
+ (void)requestPasswordSettingParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_PasswordSetting params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//退出登录
+ (void)requestUserLogoutParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_UserLogout params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//修改密码时的验证码
+ (void)requestGetUpdatePswCodeParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_GetUpdatePswCode params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//修改密码
+ (void)requestUpdatePswParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_UpdatePsw params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//用户信息
+ (void)requestGetUserInfoParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_UserInfo params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//实名认证(保存)
+ (void)requestIdentitySaveParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPathJson:SERVER_IdentitySave params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//实名认证(获取信息)
+ (void)requestIdentityMineParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_IdentityMine params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//工厂类型
+ (void)requestCategoryFindAllParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_CategoryFindAll params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//工厂产品
+ (void)requestProductFindAllParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_ProductFindAll params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//获取工厂信息
+ (void)requestFactoryInfoParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_FactoryInfo params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//意见反馈
+ (void)requestmsgFeedbackParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPathJson:SERVER_FeedBackSave params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//添加设备
+ (void)requestAddMachineParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPathJson:SERVER_MachineFindAll params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//关于
+ (void)requestAboutUsParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_HelpIntro params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//客服电话
+ (void)requestkefuPhoneParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_HelpPhone params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//帮助中心
+ (void)requestHelpAllParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPathJson:SERVER_HelpFindAll params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//选择工种
+ (void)requestWorkKindParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPathJson:SERVER_WorkFindAll params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//选择产线类型
+ (void)requestProduceLineKindParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPathJson:SERVER_ProduceLineKind params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//产线详情
+ (void)requestProduceLineDetailParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_ProductionLineDetail params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//项目订单列表
+ (void)requestProjectListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_ProjectPage params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//项目评价分数列表
+ (void)requestEvaluateListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_EvaluatePage params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//项目详情
+ (void)requestProjectDetailParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_ProjectDetail params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//项目设置空闲日期保存
+ (void)requestSaveWorkerFreeDateParmers:(NSArray *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPathJson:SERVER_FreeDateSave params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//项目设置我的空闲日期
+ (void)requestWorkerFreeDateParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_FreeDateMine params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//验收项目
+ (void)requestProjectCheckParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_ProjectCheck params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//系统消息
+ (void)requestMessageMineParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_MessageMine params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//系统消息详情
+ (void)requestMessageDetailParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_MessageDetail params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//特种工人列表
+ (void)requestWorkFindAllParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_WorkFindAll params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//评价保存
+ (void)requestEvaluateSaveParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPathJson:SERVER_EvaluateSave params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//招工启事
+ (void)requestRecruitmentNoticeParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_WorkerNotice params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//雇主
+ (void)requestEmployerSelectParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_EmployerSelect params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//工厂详情
+ (void)requestContractorDetailParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_ContractorDetail params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//报名
+ (void)requestRecommendAddParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_recomAdd params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//查看项目详情
+ (void)requestProjectSelectParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_projectSelect params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//地图
+ (void)requestContractorMapParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_ContractorMap params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//支付
+ (void)requestPayParmers:(NSDictionary *)parmers PayType:(NSInteger)payType Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    NSString *url = @"/contractor/wxpay/pay";
    if (payType == 1)
    {
        url = @"/contractor/alipay/pay";
    }
    [HttpTool postWithPath:url params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//消息项目详情保存
+ (void)requestQuotationSaveParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPathJson:SERVER_QuotationSave params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//拒绝消息
+ (void)requestQuotationRefuseParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_QuotationRefuse params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}
//拒绝消息2
+ (void)requestQuotationRefuseSecondParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_QuotationRefuseSecond params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}
//拒绝消息3
+ (void)requestQuotationRefuseThirdParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_QuotationRefuseThird params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//接受消息
+ (void)requestQuotationAcceptParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_QuotationAccept params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}
//接受消息2
+ (void)requestQuotationAcceptSecondParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_QuotationAcceptSecond params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}
//接受消息3
+ (void)requestQuotationAcceptThirdParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_QuotationAcceptThird params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//选择工人(系统推荐)
+ (void)requestWorkerListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_WorkerMatch params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//选择工人(报名)
+ (void)requestApplyWorkerListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_WorkerApply params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//选择工人(确认)
+ (void)requestWorkerEnsureParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_WorkerEnsure params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//确认项目
+ (void)requestEnsureProjectParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_EnsureProject params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//获取工人项目信息
+ (void)requestWorkerProjectParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_workerProject params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//获取工人评价信息
+ (void)requestWorkerEvaluateParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_workerEvaluate params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//获取工人信息
+ (void)requestGetWorkerMessageParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_workerMessage params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//收藏，取消收藏 /worker/collect/addOrRemove
+ (void)requestCollectAddOrRemoveParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_collectAddOrRemove params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//协议
+ (void)requestGetRegistAgreeMentParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_Agreement params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//通知
+ (void)requestMessageInitParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_MessageInit params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//通知Test
+ (void)requestMessageTestParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_MessageTest params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//删除产线
+ (void)requestDeleteProductionLineParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_DeleteProductionLine params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//清空空闲时间
+ (void)requestClearPipelineFreeDateParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_ClearPipelineFreeDate params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//消息是否未读
+ (void)requestMessageIsReadParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:SERVER_MessageIsRead params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//产线是否可以保存
+ (void)requestProduceIsCanSaveParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPathJson:SERVER_ProduceIsCanSave params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

@end
